Skip to content

Keep options when updating packages in importmap#310

Merged
rafaelfranca merged 5 commits intomainfrom
rm-update-keep-options
Jul 31, 2025
Merged

Keep options when updating packages in importmap#310
rafaelfranca merged 5 commits intomainfrom
rm-update-keep-options

Conversation

@rafaelfranca
Copy link
Member

The only option that is relevant to keep is the preload option.

Not all cases are kept though. If the option is set to a variable or complex expression, it is not kept. Only simple values like true, false, or a string/array of strings are preserved.

Fixes #307

This make sure we are not duplicating the same regexp in multiple places
with slightly different variations.
No need to exclude `[` or `]`.
The only option that is relevant to keep is the `preload` option.

Not all cases are kept though. If the option is set to a variable or
complex expression, it is not kept. Only simple values like `true`, `false`,
or a string/array of strings are preserved.
@rafaelfranca rafaelfranca merged commit ae67187 into main Jul 31, 2025
68 checks passed
@rafaelfranca rafaelfranca deleted the rm-update-keep-options branch January 7, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

importmap update removes preload option

1 participant